package demo;

import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class HelloWorld {
    public static void main(String[] args) {
        try (FileOutputStream fos = new FileOutputStream("fos.txt");) {
            String str = "大家好~~";
            fos.write(str.getBytes(StandardCharsets.UTF_8));
            System.out.println("写出完毕");
            System.out.println("分支上进行了修改操作");
            System.out.println("主线上又修改了一行内容！");
            System.out.println("改一改");
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
